import request from './request'

const baseUrl = {
  sysUrl: import.meta.env.VITE_SERVER
}

// oneExamApi 获取问卷详情的接口
export const testedApi = (data) => {
  return request({method: 'POST', url: baseUrl.sysUrl + '/exam/log/tested', data})
}

// oneExamApi 获取问卷详情的接口
export const oneExamApi = (params) => {
  return request({method: 'GET', url: baseUrl.sysUrl + '/exam/log/oneExam', params})
}
// listQstsApi 查询问题及答案选项的接口
export const listQstsApi = (params) => {
  return request({method: 'GET', url: baseUrl.sysUrl + '/exam/log/quests', params})
}
// testExamApi 提交答卷的接口
export const testExamApi = (data) => {
  return request({method: 'POST', url: baseUrl.sysUrl + '/exam/log/test', data})
}
// oneLogApi 获取答题记录详情的接口
export const oneLogApi = (params) => {
  return request({method: 'GET', url: baseUrl.sysUrl + '/exam/log/detail', params})
}
